home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / DesktopDoubler / Common / Headers / QDUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-22  |  571 b   |  39 lines  |  [TEXT/CWIE]

  1. #ifndef _QDCONTEXT_
  2. #define _QDCONTEXT_
  3.  
  4. #include <QuickDraw.h>
  5.  
  6.  
  7. typedef class QDContext
  8. {
  9. public:
  10.     GrafPtr        fSavePort;
  11.     Point        fPenSize;
  12.     short        fPenMode;
  13.     Pattern        fPenPat;
  14.     short        fTextFont;
  15.     Style        fTextFace;
  16.     short        fTextMode;
  17.     short        fTextSize;
  18.     RGBColor    fForeColor;
  19.     RGBColor    fBackColor;
  20.     
  21.     QDContext(void);
  22.     QDContext(GrafPtr port);
  23.     ~QDContext(void);
  24. } QDContext;
  25.  
  26.  
  27. typedef class QDClipContext
  28. {
  29. public:
  30.     GrafPtr        fSavePort;
  31.     RgnHandle    fSaveClip;
  32.     
  33.     QDClipContext(GrafPtr port,RgnHandle clip);
  34.     ~QDClipContext(void);
  35. } QDClipContext;
  36.  
  37.  
  38. #endif /* _QDCONTEXT_ */
  39.